﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Windows.Forms;

namespace IMCOM.Imagiality.ImageProcessing.Canvas2D.AutoContrast
{
    public class AutoContrastLineEndPointScaling : AutoContrastLineScaling
    {
        public AutoContrastLineEndPointScaling(AutoContrastImageEventListener controller, AutoContrastHandle activeHandle)
            : base(controller, activeHandle)
        {
        }

        protected override void MovePoint(Point mouseDelta)
        {
            controller.Calculator.LineEndPoint = activeHandle.Move(mouseDelta, controller.Calculator.LineEndPoint);
        }
    }
}
